package com.tongzhou.tongzhou.quot.action;

import com.opensymphony.xwork2.ActionSupport;
import com.tongzhou.db.exception.DBException;
import com.tongzhou.tongzhou.quot.dao.IQuotRemarkDAO;
import com.tongzhou.tongzhou.quot.model.QuotRemark;

public class QuotRemarkAction extends ActionSupport{
	private IQuotRemarkDAO dao;
	private QuotRemark quotRemark;
	private int id;
	public String toEditQuotRemark() throws DBException{
		id=0;
		quotRemark=dao.getQuotRemarkById(id);
		return "editQuotRemark";
	}
	public String editQuotRemark() throws DBException{
		dao.updateQuotRemark(quotRemark);
		return "detailQuotRemark";
	}
	public String detailQuotRemark() throws DBException{
		id=0;
		quotRemark=dao.getQuotRemarkById(id);
		return "detailQuotRemark";
	}
	public IQuotRemarkDAO getDao() {
		return dao;
	}
	public void setDao(IQuotRemarkDAO dao) {
		this.dao = dao;
	}
	public QuotRemark getQuotRemark() {
		return quotRemark;
	}
	public void setQuotRemark(QuotRemark quotRemark) {
		this.quotRemark = quotRemark;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
}
